home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3065 < prev    next >
Mailbox/MIME Entity  |  1996-08-06  |  1.6 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 63 79 62 65 72 |Path: ne|ws.cyber|
|00000010| 70 6f 72 74 61 6c 2e 6e | 65 74 09 21 75 73 65 6e |portal.n|et.!usen|
|00000020| 65 74 0a 46 72 6f 6d 3a | 20 64 74 72 75 65 73 20 |et.From:| dtrues |
|00000030| 3c 32 30 34 2e 39 37 2e | 32 33 34 2e 34 31 3e 0a |<204.97.|234.41>.|
|00000040| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000050| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 53 75 62 6a 65 63 |.lang.c+|+.Subjec|
|00000060| 74 3a 20 52 65 3a 20 41 | 75 74 6f 6d 61 74 69 63 |t: Re: A|utomatic|
|00000070| 20 64 61 74 61 20 73 65 | 67 6d 65 6e 74 20 3f 3f | data se|gment ??|
|00000080| 3f 0a 44 61 74 65 3a 20 | 32 32 20 4a 61 6e 20 31 |?.Date: |22 Jan 1|
|00000090| 39 39 36 20 30 30 3a 35 | 31 3a 34 37 20 47 4d 54 |996 00:5|1:47 GMT|
|000000a0| 0a 4f 72 67 61 6e 69 7a | 61 74 69 6f 6e 3a 20 43 |.Organiz|ation: C|
|000000b0| 79 62 65 72 50 6f 72 74 | 2c 20 4c 4c 43 20 6f 66 |yberPort|, LLC of|
|000000c0| 20 43 6c 61 72 65 6d 6f | 6e 74 20 4e 48 0a 4d 65 | Claremo|nt NH.Me|
|000000d0| 73 73 61 67 65 2d 49 44 | 3a 20 3c 34 64 75 6e 33 |ssage-ID|: <4dun3|
|000000e0| 33 24 61 67 66 40 6e 65 | 77 73 2e 63 79 62 65 72 |3$agf@ne|ws.cyber|
|000000f0| 70 6f 72 74 61 6c 2e 6e | 65 74 3e 0a 52 65 66 65 |portal.n|et>.Refe|
|00000100| 72 65 6e 63 65 73 3a 20 | 3c 4e 45 57 54 4e 65 77 |rences: |<NEWTNew|
|00000110| 73 2e 38 32 32 30 33 36 | 32 35 35 2e 32 36 37 32 |s.822036|255.2672|
|00000120| 37 2e 64 61 6e 69 70 65 | 61 72 40 64 69 61 6c 75 |7.danipe|ar@dialu|
|00000130| 70 2e 6e 65 74 76 69 73 | 69 6f 6e 2e 6e 65 74 2e |p.netvis|ion.net.|
|00000140| 69 6c 3e 0a 4e 4e 54 50 | 2d 50 6f 73 74 69 6e 67 |il>.NNTP|-Posting|
|00000150| 2d 48 6f 73 74 3a 20 64 | 74 72 75 65 73 2e 63 79 |-Host: d|trues.cy|
|00000160| 62 65 72 70 6f 72 74 61 | 6c 2e 6e 65 74 0a 4d 69 |berporta|l.net.Mi|
|00000170| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|00000180| 43 6f 6e 74 65 6e 74 2d | 54 79 70 65 3a 20 74 65 |Content-|Type: te|
|00000190| 78 74 2f 70 6c 61 69 6e | 3b 20 63 68 61 72 73 65 |xt/plain|; charse|
|000001a0| 74 3d 75 73 2d 61 73 63 | 69 69 0a 43 6f 6e 74 65 |t=us-asc|ii.Conte|
|000001b0| 6e 74 2d 54 72 61 6e 73 | 66 65 72 2d 45 6e 63 6f |nt-Trans|fer-Enco|
|000001c0| 64 69 6e 67 3a 20 37 62 | 69 74 0a 58 2d 4d 61 69 |ding: 7b|it.X-Mai|
|000001d0| 6c 65 72 3a 20 4d 6f 7a | 69 6c 6c 61 20 31 2e 31 |ler: Moz|illa 1.1|
|000001e0| 4e 20 28 57 69 6e 64 6f | 77 73 3b 20 49 3b 20 31 |N (Windo|ws; I; 1|
|000001f0| 36 62 69 74 29 0a 54 6f | 3a 20 64 61 6e 69 70 65 |6bit).To|: danipe|
|00000200| 61 72 40 6e 65 74 76 69 | 73 69 6f 6e 2e 6e 65 74 |ar@netvi|sion.net|
|00000210| 2e 69 6c 0a 0a 44 61 6e | 69 20 50 65 61 72 20 3c |.il..Dan|i Pear <|
|00000220| 64 61 6e 69 70 65 61 72 | 40 6e 65 74 76 69 73 69 |danipear|@netvisi|
|00000230| 6f 6e 2e 6e 65 74 2e 69 | 6c 3e 20 77 72 6f 74 65 |on.net.i|l> wrote|
|00000240| 3a 0a 3e 0a 3e 48 69 2c | 0a 3e 49 6e 20 6f 75 72 |:.>.>Hi,|.>In our|
|00000250| 20 77 69 6e 64 6f 77 73 | 20 61 70 70 6c 69 63 61 | windows| applica|
|00000260| 74 69 6f 6e 20 74 68 61 | 74 20 69 73 20 69 6e 20 |tion tha|t is in |
|00000270| 43 2b 2b 2c 20 77 65 20 | 63 61 6e 20 6e 6f 74 0a |C++, we |can not.|
|00000280| 3e 6c 69 6e 6b 20 61 6e | 64 20 63 72 65 61 74 65 |>link an|d create|
|00000290| 20 61 6e 20 45 58 45 2c | 20 61 6e 64 20 77 65 20 | an EXE,| and we |
|000002a0| 72 65 63 65 69 76 65 20 | 74 68 65 20 66 6f 6c 6c |receive |the foll|
|000002b0| 6f 77 69 6e 67 20 0a 3e | 6d 65 73 73 61 67 65 3a |owing .>|message:|
|000002c0| 20 22 41 75 74 6f 6d 61 | 74 69 63 20 64 61 74 61 | "Automa|tic data|
|000002d0| 20 73 65 67 6d 65 6e 74 | 20 65 78 63 65 65 64 73 | segment| exceeds|
|000002e0| 20 36 34 4b 22 2e 0a 3e | 57 68 61 74 20 61 72 65 | 64K"..>|What are|
|000002f0| 20 74 68 65 20 72 65 61 | 73 6f 6e 73 20 66 6f 72 | the rea|sons for|
|00000300| 20 74 68 69 73 20 65 72 | 72 6f 72 2e 0a 3e 0a 3e | this er|ror..>.>|
|00000310| 45 6d 61 69 6c 20 3a 20 | 64 61 6e 69 70 65 61 72 |Email : |danipear|
|00000320| 40 6e 65 74 76 69 73 69 | 6f 6e 2e 6e 65 74 2e 69 |@netvisi|on.net.i|
|00000330| 6c 0a 3e 0a 0a 0a 57 65 | 20 68 61 76 65 20 72 75 |l.>...We| have ru|
|00000340| 6e 20 69 6e 74 6f 20 74 | 68 65 20 73 61 6d 65 20 |n into t|he same |
|00000350| 70 72 6f 62 6c 65 6d 2e | 20 20 49 74 20 73 65 65 |problem.| It see|
|00000360| 6d 73 20 74 68 61 74 20 | 79 6f 75 20 61 72 65 20 |ms that |you are |
|00000370| 6f 6e 6c 79 20 61 6c 6c | 6f 77 65 64 20 0a 36 34 |only all|owed .64|
|00000380| 4b 20 6f 66 20 73 70 61 | 63 65 20 66 6f 72 20 74 |K of spa|ce for t|
|00000390| 68 65 20 68 65 61 70 2c | 20 73 74 61 63 6b 2c 20 |he heap,| stack, |
|000003a0| 61 6e 64 20 61 6c 6c 20 | 6f 66 20 74 68 65 20 61 |and all |of the a|
|000003b0| 75 74 6f 6d 61 74 69 63 | 20 76 61 72 69 61 62 6c |utomatic| variabl|
|000003c0| 65 73 20 75 73 65 64 20 | 0a 69 6e 20 74 68 65 20 |es used |.in the |
|000003d0| 63 6f 64 65 20 28 6f 72 | 20 73 6f 6d 65 74 68 69 |code (or| somethi|
|000003e0| 6e 67 20 74 6f 20 74 68 | 61 74 20 65 66 66 65 63 |ng to th|at effec|
|000003f0| 74 29 2e 20 20 4b 65 65 | 70 20 69 6e 20 6d 69 6e |t). Kee|p in min|
|00000400| 64 20 74 68 61 74 20 61 | 6e 20 61 72 72 61 79 20 |d that a|n array |
|00000410| 6f 66 20 0a 63 6c 61 73 | 73 65 73 20 63 61 6e 20 |of .clas|ses can |
|00000420| 74 69 65 20 75 70 20 6d | 65 6d 6f 72 79 20 71 75 |tie up m|emory qu|
|00000430| 69 63 6b 6c 79 2e 20 20 | 57 65 20 67 65 74 20 61 |ickly. |We get a|
|00000440| 72 6f 75 6e 64 20 74 68 | 61 74 20 62 79 20 64 79 |round th|at by dy|
|00000450| 6e 61 6d 69 63 61 6c 6c | 79 20 0a 61 6c 6c 6f 63 |namicall|y .alloc|
|00000460| 61 74 69 6e 67 20 6d 6f | 73 74 20 6f 66 20 6f 75 |ating mo|st of ou|
|00000470| 72 20 63 6c 61 73 73 65 | 73 2e 20 20 57 65 20 75 |r classe|s. We u|
|00000480| 73 65 20 74 68 65 20 6c | 61 72 67 65 20 6d 65 6d |se the l|arge mem|
|00000490| 6f 72 79 20 6d 6f 64 65 | 6c 20 61 6e 64 20 0a 6e |ory mode|l and .n|
|000004a0| 6f 74 68 69 6e 67 20 62 | 75 74 20 66 61 72 20 70 |othing b|ut far p|
|000004b0| 6f 69 6e 74 65 72 73 2e | 20 20 28 59 6f 75 20 77 |ointers.| (You w|
|000004c0| 69 6c 6c 20 6e 65 65 64 | 20 74 6f 20 75 73 65 20 |ill need| to use |
|000004d0| 66 61 72 20 70 6f 69 6e | 74 65 72 73 2c 20 0a 6f |far poin|ters, .o|
|000004e0| 74 68 65 72 77 69 73 65 | 20 79 6f 75 20 77 69 6c |therwise| you wil|
|000004f0| 6c 20 62 65 20 61 6c 6c | 6f 63 61 74 69 6e 67 20 |l be all|ocating |
|00000500| 6d 65 6d 6f 72 79 20 66 | 72 6f 6d 20 74 68 65 20 |memory f|rom the |
|00000510| 6c 6f 63 61 6c 20 68 65 | 61 70 2c 20 77 68 69 63 |local he|ap, whic|
|00000520| 68 20 0a 74 65 6e 64 73 | 20 74 6f 20 66 69 6c 6c |h .tends| to fill|
|00000530| 20 75 70 20 70 72 65 74 | 74 79 20 71 75 69 63 6b | up pret|ty quick|
|00000540| 6c 79 2e 20 20 57 65 20 | 68 61 76 65 20 64 65 76 |ly. We |have dev|
|00000550| 65 6c 6f 70 65 64 20 61 | 20 6c 69 62 72 61 72 79 |eloped a| library|
|00000560| 20 74 68 61 74 20 77 69 | 6c 6c 20 0a 61 6c 6c 6f | that wi|ll .allo|
|00000570| 77 20 75 73 20 74 6f 20 | 75 73 65 20 6d 6f 72 65 |w us to |use more|
|00000580| 20 74 68 61 6e 20 74 68 | 65 20 36 34 30 4b 20 6d | than th|e 640K m|
|00000590| 65 6d 6f 72 79 20 6f 6e | 20 74 6f 64 61 79 73 20 |emory on| todays |
|000005a0| 63 6f 6d 70 75 74 65 72 | 73 2e 20 20 54 68 65 20 |computer|s. The |
|000005b0| 0a 6d 65 74 68 6f 64 20 | 69 73 20 64 65 73 63 72 |.method |is descr|
|000005c0| 69 62 65 64 20 69 6e 20 | 50 65 74 65 72 20 4e 6f |ibed in |Peter No|
|000005d0| 72 74 6f 6e 20 61 6e 64 | 20 50 61 6c 20 59 61 6f |rton and| Pal Yao|
|000005e0| 27 73 20 62 6f 6f 6b 20 | 6f 6e 20 77 69 6e 64 6f |'s book |on windo|
|000005f0| 77 73 20 0a 70 72 6f 67 | 72 61 6d 6d 69 6e 67 2e |ws .prog|ramming.|
|00000600| 0a 0a 47 6f 6f 64 20 6c | 75 63 6b 20 61 6e 64 20 |..Good l|uck and |
|00000610| 67 65 74 20 6f 75 74 20 | 6f 66 20 42 69 6c 6c 27 |get out |of Bill'|
|00000620| 73 20 31 36 2d 62 69 74 | 20 65 6e 76 69 72 6f 6e |s 16-bit| environ|
|00000630| 6d 65 6e 74 20 61 73 20 | 73 6f 6f 6e 20 61 73 20 |ment as |soon as |
|00000640| 70 6f 73 73 69 62 6c 65 | 2e 0a 0a 44 61 6e 0a 0a |possible|...Dan..|
+--------+-------------------------+-------------------------+--------+--------+